﻿<%@ Control Language="C#" Inherits="Yuanlin.Business.SensitiveKeywordEditControl, Yuanlin.Business"
    AutoEventWireup="true" %>

<script type="text/javascript">
<!--
    function CheckValue()
    {
        var word = document.getElementById('<%= wordValuedTextBox.ClientID %>');
        if(word.value.Trim().length==0)
        {
            alert('请填写名称！');
            word.focus();
            return false;
        }
        
        return true;
    }
//-->
</script>

<div class="AdminArea">
    <fieldset>
        <legend>
            <nwap:ResourceLiteral runat="server" ResourceName="System_Applications_Yuanlin_EditSensitiveKeyword"
                ResourceFile="ControlPanelResources.xml">
            </nwap:ResourceLiteral>
        </legend>
        <div class="FormRow">
            <div class="LargerFieldNameRequireCharacter">
                <nwap:ResourceLabel runat="Server" CssClass="RedColor" ResourceFile="ControlPanelResources.xml"
                    ResourceName="RequireCharacter" />
                <nwap:ResourceLabel runat="Server" ControlToLabel="wordValuedTextBox" ResourceFile="ControlPanelResources.xml"
                    ResourceName="System_Applications_Yuanlin_SensitiveKeyword_Word" />
            </div>
            <nwap:ValuedTextBox runat="server" CssClass="InputField MiddleWidth" ID="wordValuedTextBox" />
        </div>
        <div class="FormRow SubmitButtonRow">
            <nwap:ResourceButton ID="SaveButton" ResourceName="Save" CssClass="Button" runat="server"
                OnClientClick="return CheckValue()"></nwap:ResourceButton>&nbsp;&nbsp;&nbsp;&nbsp;
            <nwap:ResourceButton ID="BackButton" ResourceName="Back" CssClass="Button" runat="server">
            </nwap:ResourceButton>
        </div>
    </fieldset>
</div>
